﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" ValidateRequest="false" Debug="true" Inherits="Azure.TableQuery.WebClient.Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Azure Table Query</title>
    <link href="styles/site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="panel">
        <div class="header">Table Explorer</div>
        <div class="toolbar">
            <asp:ImageButton ID="btnRun" runat="server" ImageUrl="~/images/Run.png" CssClass="toolbutton"
                ToolTip="Execute" onclick="btnRun_Click" BorderWidth="1px" />
                
            <asp:DropDownList ID="ddlOutputType" runat="server" CssClass="outputOptions">
                <asp:ListItem Text="Output to Grid" />
            </asp:DropDownList>
        </div>
        
        <div class="treeDiv">
            <asp:TreeView ID="treeTables" runat="server" ExpandDepth="0"
                OnTreeNodePopulate="treeTables_TreeNodePopulate" 
                NodeStyle-CssClass="treeNode"
                LeafNodeStyle-CssClass="treeNode" 
                SelectedNodeStyle-CssClass="selectedNode" 
                onselectednodechanged="treeTables_SelectedNodeChanged">
                <Nodes>
                    <asp:TreeNode PopulateOnDemand="true" Text="Tables" ImageUrl="~/images/folder.png"/>
                </Nodes>
            </asp:TreeView>
        </div>
        <div class="queryDiv">
            <asp:TextBox ID="txtQueryText" runat="server" Rows="10" Columns="70" 
               TextMode="MultiLine" CssClass="query" />
        </div>
        <asp:Panel ID="pnlGrid" runat="server" CssClass="resultsDiv" Visible="false">
            <asp:DataGrid ID="gridResults" runat="server" AutoGenerateColumns="true" 
                Height="20px" Width="100%" CssClass="resultsGrid">
                <ItemStyle Height="12pt" Wrap="False" CssClass="gridItem" />
                <HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" />
            </asp:DataGrid>
        </asp:Panel>
        <asp:Panel ID="pnlErrors" runat="server" CssClass="errorsDiv" Visible="false">
            <asp:TextBox ID="txtErrors" runat="server" Rows="20" Columns="70" 
                ReadOnly="true" TextMode="MultiLine" CssClass="errorMessage" />
        </asp:Panel>
        <asp:Panel ID="pnlOutput" runat="server" CssClass="outputDiv" Visible="false">
            <asp:TextBox ID="txtOutput" runat="server" Rows="20" Columns="70" 
                ReadOnly="true" TextMode="MultiLine" CssClass="message" />
        </asp:Panel>
    </div>
    </form>
</body>
</html>
